var express = require('express');
var router = express.Router();

var data = [{
    user_id: '0708',
    user_mail: '325435434354@qq.com',
    compent_fullname: '北京天创',
    linkman: '曾曾',
    phone_num: '10086',
    QQ_num: '46445465456',
    status: '已下线'
  },
  {
    user_id: '0709',
    user_mail: '4321313131@qq.com',
    compent_fullname: '广州天创',
    linkman: '潘潘',
    phone_num: '10000',
    QQ_num: '83716736436',
    status: '上线中'
  },
  {
    user_id: '0710',
    user_mail: '22145456@qq.com',
    compent_fullname: '上海天创',
    linkman: '雷雷',
    phone_num: '110',
    QQ_num: '666144436',
    status: '审核通过'
  },
  {
    user_id: '0711',
    user_mail: '4435435456@qq.com',
    compent_fullname: '中国天创',
    linkman: '老毛',
    phone_num: '120',
    QQ_num: '896676464',
    status: '不给你过'
  },
  {
    user_id: '0712',
    user_mail: '5465656456@qq.com',
    compent_fullname: '深圳天创',
    linkman: '某某',
    phone_num: '12305',
    QQ_num: '666666',
    status: '重新审核'
  }
];
// http://localhost:3000/api/ad?
// page=1&size=50&name=&status=0&time=2017-12-29+-+2017-12-29
router.get('/', function (req, res, next) {
  var rst = {
    code: 10004,
    msg: 'success',
    data: {
      current_page: 1,
      total: 5,
      per_page: 10,
      data: data
    }
  };
  res.json(rst);
});

module.exports = router;
